import Vue from 'vue'
import Vuex from 'vuex'
import iViewTheme from 'iview-layout-themes'
import createPersistedState from 'vuex-persistedstate'
const app = iViewTheme.util.app
const user = iViewTheme.util.user
// import user from './module/user'
// import app from './module/app'

Vue.use(Vuex)

export default new Vuex.Store({
  plugins: [createPersistedState({ storage: window.sessionStorage })],
  state: {
    //
  },
  mutations: {
    //
  },
  actions: {
    //
  },
  modules: {
    user,
    app
  }
})
